package smlab.media.FLVPlayer.view.state
{
	import smlab.media.FLVPlayer.events.StateEvent;
	import smlab.media.FLVPlayer.view.controller.PlayerController;
	import smlab.media.FLVPlayer.view.ui.PlayerPanel;
	import smlab.view.state.Container_SM;

	/**
	 * 播放器场景
	 * @author simon
	 * 
	 */
	public class PlayerState extends Container_SM
	{
		private var playerController:PlayerController;
		
		public function PlayerState()
		{
			super();
		}
		
		override public function initialize():void{
			playerController=new PlayerController;
			playerController.view=new PlayerPanel;
			addChild(playerController.view);
			
			this.initialized=true;
			dispatchEvent(new StateEvent(StateEvent.STATE_INITIALIZED));
		}
	}
}